Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #7502: autoResize not working when value is updated #7580

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

tnowad
Copy link
Contributor

@tnowad tnowad commented Jan 8, 2025

Fixed

Fix #7502

This pull request resolves issue #7502, where the InputTextarea component did not automatically resize when the value prop changed.

Solution

  • Added props.value to the dependency array of the useEffect responsible for auto-resizing.
  • This ensures the resize function is triggered whenever the value prop changes, allowing the component to dynamically adjust its height.

Before

Screen-Recording.online-video-cutter.com.mp4

After

Screen-Recording.1.online-video-cutter.com.mp4

Copy link

vercel bot commented Jan 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview Jan 8, 2025 10:46am
primereact-v9 ⬜️ Ignored (Inspect) Visit Preview Jan 8, 2025 10:46am

@melloware melloware merged commit 0b8d8ec into primefaces:master Jan 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InputTextarea: autoResize not working when disabled
2 participants